package com.etl.dataflow.scheduler.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etl.dataflow.scheduler.admin.entity.DataflowTaskRecord;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 任务运行记录 Mapper 接口
 * </p>
 *
 * @author dx
 * @since 2022-04-24
 */
@Repository
public interface DataflowTaskRecordMapper extends BaseMapper<DataflowTaskRecord> {

    /**
     * 分页查询任务记录，keyword参数请传入%包裹的字符串用于模糊查询
     * @param iPage 分页参数
     * @param keyword 模糊查询关键字
     * @return 分页结果
     */
    Page<DataflowTaskRecord> paging(IPage<DataflowTaskRecord> iPage, String keyword);
}
